package sc.tcp.impl;


import java.io.IOException;
import java.net.Socket;
import java.net.UnknownHostException;

import org.apache.log4j.Logger;

import sc.helper.Constants;
import sc.tcp.TCPGateway;
import sc.udp.UDPGateway;

public class TCPGatewayClient extends TCPGatewayImpl {

	private Logger logger = Logger.getLogger(this.getClass());
	
	public TCPGatewayClient() {
		logger.info("Starting...");
		try {
			socket = new Socket(Constants.TCP_HOST, Constants.TCP_PORT);
			logger.info("Client connected");

		} catch (UnknownHostException e) {
			e.printStackTrace();
		} catch (IOException e) {
			e.printStackTrace();
		}
	}
	
}
